/* 赛博朋克风格天气卡片 */
.cyberpunk-card {
    width: 100%;
    background-color: #0a0a16;
    color: #00ffff;
    border: 2px solid #ff00ff;
    box-shadow: 0 0 15px #ff00ff, inset 0 0 10px rgba(0, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

/* 背景网格 */
.cyberpunk-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(0deg, transparent 24%, rgba(0, 255, 255, 0.1) 25%, rgba(0, 255, 255, 0.1) 26%, transparent 27%, transparent 74%, rgba(0, 255, 255, 0.1) 75%, rgba(0, 255, 255, 0.1) 76%, transparent 77%, transparent),
                      linear-gradient(90deg, transparent 24%, rgba(0, 255, 255, 0.1) 25%, rgba(0, 255, 255, 0.1) 26%, transparent 27%, transparent 74%, rgba(0, 255, 255, 0.1) 75%, rgba(0, 255, 255, 0.1) 76%, transparent 77%, transparent);
    background-size: 30px 30px;
    z-index: 0;
}

/* 故障效果 */
.cyberpunk-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 0, 255, 0.1) 0%, rgba(0, 255, 255, 0.1) 100%);
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
}

.cyberpunk-glitch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #ff00ff;
    opacity: 0.5;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 标题栏 */
.cyberpunk-header {
    position: relative;
    padding: 15px;
    border-bottom: 2px solid #ff00ff;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cyberpunk-location {
    font-size: 20px;
    font-weight: bold;
    color: #ff00ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 5px #ff00ff;
}

.cyberpunk-date {
    font-size: 14px;
    color: #00ffff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 3px 8px;
    border: 1px solid #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

/* 主要内容区 */
.cyberpunk-content {
    position: relative;
    padding: 20px;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 15px;
}

/* 温度区域 */
.cyberpunk-temp-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ff00ff;
    padding: 15px;
    background-color: rgba(10, 10, 22, 0.8);
    position: relative;
    overflow: hidden;
}

.cyberpunk-temp-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: 10px;
    background-color: #ff00ff;
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(calc(100% + 20px)); }
}

.cyberpunk-temp {
    font-size: 60px;
    font-weight: bold;
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

.cyberpunk-weather {
    margin-top: 10px;
    font-size: 16px;
    text-transform: uppercase;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

/* 图标区域 */
.cyberpunk-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #00ffff;
    background-color: rgba(10, 10, 22, 0.8);
}

.cyberpunk-icon {
    width: 70%;
    height: 70%;
    filter: drop-shadow(0 0 5px #00ffff) hue-rotate(180deg);
}

/* 详情区域 */
.cyberpunk-details {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
}

.cyberpunk-details-item {
    border: 1px solid #00ffff;
    padding: 10px;
    text-align: center;
    background-color: rgba(10, 10, 22, 0.8);
}

.cyberpunk-details-label {
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: #00ffff;
}

.cyberpunk-details-value {
    font-size: 18px;
    font-weight: bold;
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
}

/* 底部栏 */
.cyberpunk-footer {
    position: relative;
    padding: 10px;
    text-align: center;
    border-top: 2px solid #00ffff;
    font-size: 12px;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

/* 装饰元素 */
.cyberpunk-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 3;
}

.cyberpunk-corner-tl {
    top: 0;
    left: 0;
    border-top: 3px solid #ff00ff;
    border-left: 3px solid #ff00ff;
}

.cyberpunk-corner-tr {
    top: 0;
    right: 0;
    border-top: 3px solid #00ffff;
    border-right: 3px solid #00ffff;
}

.cyberpunk-corner-bl {
    bottom: 0;
    left: 0;
    border-bottom: 3px solid #00ffff;
    border-left: 3px solid #00ffff;
}

.cyberpunk-corner-br {
    bottom: 0;
    right: 0;
    border-bottom: 3px solid #ff00ff;
    border-right: 3px solid #ff00ff;
}

/* 响应式调整 */
@media (max-width: 400px) {
    .cyberpunk-content {
        grid-template-columns: 1fr;
    }
    
    .cyberpunk-details {
        grid-column: 1 / 2;
    }
} 